import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import "lib-flexible"; //引入rem做屏幕的自动适配
import htmlToPdf from "@/utils/html2pdf.js"; //h5页面转成pdf格式
Vue.prototype.$getpdf = htmlToPdf.getPdf;
Vue.config.productionTip = false;
import Toast from "./gloablComponents/toast/index";
import Exception from "./gloablComponents/exceptionHandling/index";

Vue.use(Toast);
Vue.use(Exception);
Object.assign(Vue.prototype, {
  dance() {
    return "我爱跳舞";
  },
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
